package com.example.demo01;

/**
 * @Description : TODO
 * @Author : ZYX
 * @Date : 2022/8/10 16:20
 * @Version : 1.0
 **/
public class StringTest {

    public static void main(String[] args) {
        String str1 = " sp222 394 90";
        String str2 = " sp222 394 90    ";
        String strip1 = str1.stripTrailing();
        String strip2 = str2.stripTrailing();
        String trim = str2.trim();
        System.out.println("strip1:"+strip1+"|||||");
        System.out.println("strip2:"+strip2+"|||||");
        System.out.println("trim:"+trim+"|||||");

    }

}
